#pragma once

#if defined (_MSC_VER)
#   ifdef CPPXCORBA_EXPORTS
#       define CPPXCORBA_API __declspec(dllexport)
#   else // CPPXCORBA_EXPORTS
#       define CPPXCORBA_API __declspec(dllimport)
//#       include "../cppx.core/dllmain.h"
//#       ifdef CPPX_USE_AUTOLINK
//#           pragma comment(lib,GET_CPPX_LIB_NAME(cppx.corba))
//#           pragma message("Linking to lib file: " GET_CPPX_LIB_NAME(cppx.corba))
//#       endif // CPPX_USE_AUTOLINK
#   endif // CPPXCORBA_EXPORTS
#endif // _MSC_VER

#ifndef CPPXCORBA_API
#define CPPXCORBA_API
#endif

#include <ace/Atomic_Op.h>
#include <ace/Synch.h>

typedef ACE_Atomic_Op<ACE_Thread_Mutex,bool> safe_bool_t;
typedef ACE_Atomic_Op<ACE_Thread_Mutex,long> safe_long_t;
